/* $Id: map.h jjs $ */
/*
   Copyright (C) 2007 by Jurjen Stellingwerff <jurjen@stwerff.xs4all.nl>
   Part of the Moros Project http://moros.sourceforge.net/

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License.
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY.

   See the COPYING file for more details.
*/
#ifndef MAP_H_
#define MAP_H_

// Movement of map
// input new data on map

/// Current location of the hero or the editor

struct location {
    int x;
    int y;
    int direction;
};

location current_position;
location selected_position;

/// Different terrain types

enum terrain_type {
	Terrain_sea, Terrain_lake,
	Terrain_flat, Terrain_flowing, Terrain_hills, Terrain_mountain, Terrain_range
};

/// Different types of growth

enum growth_type {
	Growth_forest, Growth_fields, Growth_grass, Growth_swamp, Growth_moors, Growth_barren
};

/// Data on the current tile

struct client_area {
	int terrain;
	int growth;
	string name;
	int city;
	bool castle;
	bool wall;
	bool moat;
	bool cathedral;
	bool palace;
	game_party party;
}

/// Matrix of the near map tiles

area[625] map;

#endif /*MAP_H_*/
